package com.lb.bs.client.config;

import com.google.common.collect.Lists;
import com.lb.bs.client.processor.ProcessorService;
import com.lb.bs.client.processor.handle.dynamics.DynamicCreateProcessor;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ThreadLocalRandom;

/**
 * program: LB-BS-Client
 * author: bsworld.xie
 * create: 2019-12-02 15:53
 * description:
 */
public class DynamicConfig {
    private String localHost;

    public String getLocalHost() {
        return localHost;
    }

    public void setLocalHost(String localHost) {
        this.localHost = localHost;
    }

    public static void main(String[] args) {
        List<Integer> list = Lists.newArrayList(1, 2, 3, 4);
        System.out.println(list.hashCode());
        list.removeIf(a -> {
            if (a > 1) {
                return true;
            }

            return false;
        });
        System.out.println(list.hashCode());
    }
}
